package com.briup.jd2407cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.jd2407cms.domain.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.briup.jd2407cms.domain.DTO.ArticleParam;
import com.briup.jd2407cms.domain.extend.ArticleExtend;

import javax.servlet.http.HttpServletRequest;

/**
* @author jay
* @description 针对表【cms_article】的数据库操作Service
* @createDate 2024-11-18 14:40:14
*/
public interface ArticleService extends IService<Article> {
    /**
     * save or update
     * 该接口可以实现对咨询文章进行修改或新增，
     * 请求参数钟文章id存在为修改，不存在为新增
     *
     * @param article article
     * @param request request
     * @return boolean
     */
    boolean saveOrUpdate(Article article, HttpServletRequest request);

    IPage<ArticleExtend> page(ArticleParam articleParam);

    boolean reviewArticle(String id, String status);
}
